//查询告警等级
import request from '@/utils/request'

export function getVendorsList(params){
  return request({
    url: '/system/manu/config/list',
    method:'get',
    params
  })
}
export function getVendorsInfo(params){
  return request({
    url: '/system/manu/config/getInfo',
    method:'get',
    params
  })
}


export function addVendors(data){
  return request({
    url: '/system/manu/config/add',
    method:'post',
    data
  })
}

export function editVendors(data){
  return request({
    url: '/system/manu/config/edit',
    method:'post',
    data
  })
}
//修改密钥
export function editVendorsPwd(data){
  return request({
    url: '/system/manu/config/editPwd ',
    method:'post',
    data
  })
}

export function deleteVendorsById(data){
  return request({
    url: '/system/manu/config/remove',
    method:'post',
    data
  })
}

// 删除数据前校验
export function deleteForCheck(data) {
  return request({
    url: '/system/manu/config/deleteCheck',
    method: 'post',
    data: data
  })
}

